package oa.service;

import java.util.List;

import oa.entity.Department;
import oa.exception.DaoException;

public interface DepartmentService {
	boolean addDepartment(Department department) throws DaoException;//添加
	List<Department> selectAllDepartment( int companyid, Integer pageNo, Integer row);//查询全部
	List<Department> selectDepartment(int departmentId,String departmentName,int companyId);//根据条件查询
	boolean updateDepartment(Department department) throws DaoException;//更新信息
	boolean deleteCompany(int departmentId) throws DaoException;//删除
	int countDepartment(int departmentId) throws DaoException;// 获取到所有部门的数量或某公司
}
